package com.ruoyi.system.service.impl;


import com.ruoyi.system.domain.TeacherCampus;
import com.ruoyi.system.mapper.TeacherCampusMapper;
import com.ruoyi.system.service.ITeacherCampusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 教师校区表Service业务层处理
 * 
 * @author bearzz
 * @date 2024-01-22
 */
@Service
public class TeacherCampusServiceImpl implements ITeacherCampusService
{
    @Autowired
    private TeacherCampusMapper teacherCampusMapper;

    /**
     * 查询教师校区表
     * 
     * @param id 教师校区表主键
     * @return 教师校区表
     */
    @Override
    public TeacherCampus selectTeacherCampusById(Long id)
    {
        return teacherCampusMapper.selectTeacherCampusById(id);
    }

    /**
     * 查询教师校区表列表
     * 
     * @param teacherCampus 教师校区表
     * @return 教师校区表
     */
    @Override
    public List<TeacherCampus> selectTeacherCampusList(TeacherCampus teacherCampus)
    {
        return teacherCampusMapper.selectTeacherCampusList(teacherCampus);
    }

    /**
     * 新增教师校区表
     * 
     * @param teacherCampus 教师校区表
     * @return 结果
     */
    @Override
    public int insertTeacherCampus(TeacherCampus teacherCampus)
    {
        return teacherCampusMapper.insertTeacherCampus(teacherCampus);
    }

    /**
     * 修改教师校区表
     * 
     * @param teacherCampus 教师校区表
     * @return 结果
     */
    @Override
    public int updateTeacherCampus(TeacherCampus teacherCampus)
    {
        return teacherCampusMapper.updateTeacherCampus(teacherCampus);
    }

    /**
     * 批量删除教师校区表
     * 
     * @param ids 需要删除的教师校区表主键
     * @return 结果
     */
    @Override
    public int deleteTeacherCampusByIds(Long[] ids)
    {
        return teacherCampusMapper.deleteTeacherCampusByIds(ids);
    }

    /**
     * 删除教师校区表信息
     * 
     * @param id 教师校区表主键
     * @return 结果
     */
    @Override
    public int deleteTeacherCampusById(Long id)
    {
        return teacherCampusMapper.deleteTeacherCampusById(id);
    }
}
